package com.augmentum.oes.model;

import java.io.Serializable;
import java.util.Date;

import com.augmentum.oes.annotation.Orm.Column;
import com.augmentum.oes.annotation.Orm.Table;
@Table("question")
public class Question implements Serializable {
    private static final long serialVersionUID = 5744681978314146904L;
    @Column("id")
    private int id;
    @Column("question_content")
    private String questionContent;
    @Column("answer_a")
    private String answerA;
    @Column("answer_b")
    private String answerB;
    @Column("answer_c")
    private String answerC;
    @Column("answer_d")
    private String answerD;
    @Column("correct_answer")
    private String correctAnswer;
    @Column("question_status")
    private int status;
    @Column("create_time")
    private Date createTime;
    @Column("update_time")
    private Date updateTime;

    public Question() {
        super();
        status = 1;
    }
    
    public Question(int id, String questionContent, String answerA, String answerB, String answerC, String answerD,
            String correctAnswer, int status) {
        super();
        this.id = id;
        this.questionContent = questionContent;
        this.answerA = answerA;
        this.answerB = answerB;
        this.answerC = answerC;
        this.answerD = answerD;
        this.correctAnswer = correctAnswer;
        this.status = status;
    }

    public String getQuestionContent() {
        return questionContent;
    }
    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent;
    }
    public String getAnswerA() {
        return answerA;
    }
    public void setAnswerA(String answerA) {
        this.answerA = answerA;
    }
    public String getAnswerB() {
        return answerB;
    }
    public void setAnswerB(String answerB) {
        this.answerB = answerB;
    }
    public String getAnswerC() {
        return answerC;
    }
    public void setAnswerC(String answerC) {
        this.answerC = answerC;
    }
    public String getAnswerD() {
        return answerD;
    }
    public void setAnswerD(String answerD) {
        this.answerD = answerD;
    }
    public String getCorrectAnswer() {
        return correctAnswer;
    }
    public void setCorrectAnswer(String correctAnswer) {
        this.correctAnswer = correctAnswer;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
    }
    
    public int getStatus() {
        return status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    @Override
    public String toString() {
        return "Question [id=" + id + ", questionContent=" + questionContent + ", answerA=" + answerA + ", answerB="
                + answerB + ", answerC=" + answerC + ", answerD=" + answerD + ", correctAnswer=" + correctAnswer
                + ", status=" + status + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
    }

    
}
